//
//  JrdAccountViewController.m
//  v2ex-iOS
//
//  Created by longcheng on 16/6/15.
//  Copyright © 2016年 Singro. All rights reserved.
//

#import "JrdAccountExtViewController.h"
#import "JrdCommon.h"
@interface JrdAccountExtViewController ()
@property (nonatomic, strong) SCBarButtonItem *leftBarItem;

@end

@implementation JrdAccountExtViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.sc_navigationItem.leftBarButtonItem = self.leftBarItem;
    //[self.view setBackgroundColor:JRD_RGB(0, 0, 255)];
}

- (void)viewDidAppear:(BOOL)animated{
    [super viewDidAppear:YES];
    self.view.backgroundColor = JrdBackgroundColor;//JRD_RGB(221, 221, 221);//JRD_RGB(0, 0, 0);
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)loadView{
    [super loadView];
    [self configureNav];
}

- (void)configureNav{
    self.leftBarItem = [[SCBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"ico_back"]  highlight:[UIImage imageNamed:@"btn-back-normal"] style:SCBarButtonItemStylePlain handler:^(id sender) {
        [self.navigationController popViewControllerAnimated:YES];
        //[[NSNotificationCenter defaultCenter] postNotificationName:kShowMenuNotification object:nil];
    }];
    self.sc_navigationItem.title = NSLocalizedString(@"v2_Account",nil);//@"我们学习";
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
